﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DishList.aspx.cs" Inherits="RedHouse.Web.DishList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <div class="col-left">
        <div class="left-title">
            <h1><%=PageTitle %></h1>
        </div>
        <div class="left-content">
            <ul class="specialties">
                <%if (Dishes != null)
                  {
                      foreach (RedHouse.Data.Entities.RedHouseDish item in Dishes)
                      {
                %>
                <li><a href='Dish.aspx?category=<%=PageView %>&id=<%=item.Id%>'>&nbsp;&nbsp;&nbsp;&nbsp;<%= item.Title%></a></li>
                <%
                      }
                  } %>
            </ul>
        </div>
    </div>
    <!-- END .col-left -->
    <div class="col-main">
        <div class="main-title">
            <h1>&nbsp;</h1>
            <!--<ul>
				<li><a href="">All</a></li>
				<li><a href="">5</a></li>
				<li><a href="">4</a></li>
				<li><a href="">3</a></li>
				<li><a href="">2</a></li>
				<li><a href="" class="active">1</a></li>
			</ul>-->
        </div>
        <div class="main-content">
            <asp:Repeater runat="server" ID="rptDish">
                <HeaderTemplate>
                </HeaderTemplate>
                <ItemTemplate>
                    <div class="dish">
                        <div class="dish-title">
                            <h1>
                                <%#DataBinder.Eval(Container.DataItem,"Title")%>
                            </h1>
                        </div>
                        <div class="dish-thumb">
                            <a href='Dish.aspx?category=<%=PageView %>&id=<%#DataBinder.Eval(Container.DataItem,"Id")%>' viewid='<%#DataBinder.Eval(Container.DataItem,"Id")%>'>
                                <img src='<%#DataBinder.Eval(Container.DataItem,"ImageUrl")%>'  /></a>
                        </div>
                        <div class="dish-description">
                                <%#DataBinder.Eval(Container.DataItem, "Description")%>
                        </div>
                    </div>
                </ItemTemplate>
                <AlternatingItemTemplate>
                   <div class="dish-right">
                        <div class="dish-title">
                            <h1>
                                <%#DataBinder.Eval(Container.DataItem,"Title")%>
                            </h1>
                        </div>
                        <div class="dish-thumb">
                            <a href="Dish.aspx?category=<%=PageView %>&id=<%#DataBinder.Eval(Container.DataItem,"Id")%>"  viewid='<%#DataBinder.Eval(Container.DataItem,"Id")%>'>
                                <img src='<%#DataBinder.Eval(Container.DataItem,"ImageUrl")%>' /></a>
                        </div>
                        <div class="dish-description">                            
                                <%#DataBinder.Eval(Container.DataItem, "Description")%>
                        </div>
                    </div>
                </AlternatingItemTemplate>
                <FooterTemplate>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    <!-- END .col-main -->
</asp:Content>
